﻿using AutoMapper;
using Traceability.App.Apilication.Common;
using Traceability.App.Apilication.Common.Breeding;
using Traceability.App.Apilication.Common.Deep;
using Traceability.App.Apilication.Common.Health;
using Traceability.App.Apilication.Common.Slaughter;
using Traceability.App.Apilication.Handler;
using Traceability.App.Domain;
using Traceability.Domain;

namespace Traceability.App
{
    public class Myautomapper:Profile
    {
        public Myautomapper()
        {
           CreateMap<TraceabilityModel, CreateTraceabilityCommon>().ReverseMap();
           CreateMap<TraceabilityModel, UpdateTraceabilityCommon>().ReverseMap();
           CreateMap<BreedingModel, CreateBreedingCommon>().ReverseMap();
           CreateMap<BreedingModel, UpdateBreedingCommon>().ReverseMap();
           CreateMap<HealthModel, CreateHealthCommon>().ReverseMap();
           CreateMap<HealthModel, UpdateHealthCommon>().ReverseMap();
           CreateMap<BreedingEnterprises, CreateBreedingEnterCommon>().ReverseMap();
           CreateMap<BreedingEnterprises, UpdateBreedingEnterCommon>().ReverseMap();
           CreateMap<SlaughterModel, CreateSlaughterCommon>().ReverseMap();
           CreateMap<SlaughterModel, UpdateSlaughterCommon>().ReverseMap();
           CreateMap<SlaughteringEnterprises, CreateSlaughterEnterComon>().ReverseMap();
           CreateMap<SlaughteringEnterprises, UpdateSlaughterEnterComon>().ReverseMap();
           CreateMap<DeepProcessing, CreateDeepCommon>().ReverseMap();
           CreateMap<DeepProcessing, UpdateDeepCommon>().ReverseMap();
           CreateMap<DeepEnterprisess, CreateDeepEnterCommon>().ReverseMap();
           CreateMap<DeepEnterprisess, UpdateDeepEnterCommon>().ReverseMap();
        }
    }
}
